﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000975 RID: 2421
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class InteractChargerScRsp : IMessage<InteractChargerScRsp>, IMessage, IEquatable<InteractChargerScRsp>, IDeepCloneable<InteractChargerScRsp>, IBufferMessage
	{
		// Token: 0x17001EAC RID: 7852
		// (get) Token: 0x06006CAA RID: 27818 RVA: 0x001237E3 File Offset: 0x001219E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<InteractChargerScRsp> Parser
		{
			get
			{
				return InteractChargerScRsp._parser;
			}
		}

		// Token: 0x17001EAD RID: 7853
		// (get) Token: 0x06006CAB RID: 27819 RVA: 0x001237EA File Offset: 0x001219EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return InteractChargerScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001EAE RID: 7854
		// (get) Token: 0x06006CAC RID: 27820 RVA: 0x001237FC File Offset: 0x001219FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return InteractChargerScRsp.Descriptor;
			}
		}

		// Token: 0x06006CAD RID: 27821 RVA: 0x00123803 File Offset: 0x00121A03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InteractChargerScRsp()
		{
		}

		// Token: 0x06006CAE RID: 27822 RVA: 0x0012380C File Offset: 0x00121A0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InteractChargerScRsp(InteractChargerScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.chargerInfo_ = ((other.chargerInfo_ != null) ? other.chargerInfo_.Clone() : null);
			this.energyInfo_ = ((other.energyInfo_ != null) ? other.energyInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006CAF RID: 27823 RVA: 0x00123874 File Offset: 0x00121A74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InteractChargerScRsp Clone()
		{
			return new InteractChargerScRsp(this);
		}

		// Token: 0x17001EAF RID: 7855
		// (get) Token: 0x06006CB0 RID: 27824 RVA: 0x0012387C File Offset: 0x00121A7C
		// (set) Token: 0x06006CB1 RID: 27825 RVA: 0x00123884 File Offset: 0x00121A84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001EB0 RID: 7856
		// (get) Token: 0x06006CB2 RID: 27826 RVA: 0x0012388D File Offset: 0x00121A8D
		// (set) Token: 0x06006CB3 RID: 27827 RVA: 0x00123895 File Offset: 0x00121A95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChargerInfo ChargerInfo
		{
			get
			{
				return this.chargerInfo_;
			}
			set
			{
				this.chargerInfo_ = value;
			}
		}

		// Token: 0x17001EB1 RID: 7857
		// (get) Token: 0x06006CB4 RID: 27828 RVA: 0x0012389E File Offset: 0x00121A9E
		// (set) Token: 0x06006CB5 RID: 27829 RVA: 0x001238A6 File Offset: 0x00121AA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterEnergyInfo EnergyInfo
		{
			get
			{
				return this.energyInfo_;
			}
			set
			{
				this.energyInfo_ = value;
			}
		}

		// Token: 0x06006CB6 RID: 27830 RVA: 0x001238AF File Offset: 0x00121AAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as InteractChargerScRsp);
		}

		// Token: 0x06006CB7 RID: 27831 RVA: 0x001238C0 File Offset: 0x00121AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(InteractChargerScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.ChargerInfo, other.ChargerInfo) && object.Equals(this.EnergyInfo, other.EnergyInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006CB8 RID: 27832 RVA: 0x00123924 File Offset: 0x00121B24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.chargerInfo_ != null)
			{
				num ^= this.ChargerInfo.GetHashCode();
			}
			if (this.energyInfo_ != null)
			{
				num ^= this.EnergyInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006CB9 RID: 27833 RVA: 0x0012398F File Offset: 0x00121B8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006CBA RID: 27834 RVA: 0x00123997 File Offset: 0x00121B97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006CBB RID: 27835 RVA: 0x001239A0 File Offset: 0x00121BA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.energyInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.EnergyInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this.chargerInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.ChargerInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006CBC RID: 27836 RVA: 0x00123A18 File Offset: 0x00121C18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.chargerInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ChargerInfo);
			}
			if (this.energyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EnergyInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006CBD RID: 27837 RVA: 0x00123A88 File Offset: 0x00121C88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(InteractChargerScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.chargerInfo_ != null)
			{
				if (this.chargerInfo_ == null)
				{
					this.ChargerInfo = new ChargerInfo();
				}
				this.ChargerInfo.MergeFrom(other.ChargerInfo);
			}
			if (other.energyInfo_ != null)
			{
				if (this.energyInfo_ == null)
				{
					this.EnergyInfo = new RotaterEnergyInfo();
				}
				this.EnergyInfo.MergeFrom(other.EnergyInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006CBE RID: 27838 RVA: 0x00123B1C File Offset: 0x00121D1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006CBF RID: 27839 RVA: 0x00123B28 File Offset: 0x00121D28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 98U)
				{
					if (num != 112U)
					{
						if (num != 122U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.chargerInfo_ == null)
							{
								this.ChargerInfo = new ChargerInfo();
							}
							input.ReadMessage(this.ChargerInfo);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.energyInfo_ == null)
					{
						this.EnergyInfo = new RotaterEnergyInfo();
					}
					input.ReadMessage(this.EnergyInfo);
				}
			}
		}

		// Token: 0x04002970 RID: 10608
		private static readonly MessageParser<InteractChargerScRsp> _parser = new MessageParser<InteractChargerScRsp>(() => new InteractChargerScRsp());

		// Token: 0x04002971 RID: 10609
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002972 RID: 10610
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04002973 RID: 10611
		private uint retcode_;

		// Token: 0x04002974 RID: 10612
		public const int ChargerInfoFieldNumber = 15;

		// Token: 0x04002975 RID: 10613
		private ChargerInfo chargerInfo_;

		// Token: 0x04002976 RID: 10614
		public const int EnergyInfoFieldNumber = 12;

		// Token: 0x04002977 RID: 10615
		private RotaterEnergyInfo energyInfo_;
	}
}
